package top.roadvast.pdshopping.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import top.roadvast.pdshopping.bean.PdOrder;
import top.roadvast.pdshopping.service.OrderService;

import javax.annotation.Resource;

/**
 * @Author 郭泽鹏
 * @Date 2021/12/27 20:12
 * @Version 1.0
 * @Description 订单类控制层
 */
@RestController
public class OrderController {
    @Resource
    OrderService orderService;
    @PostMapping("save_order")
    public String saveOrder(@RequestBody PdOrder order) {
        return orderService.saveOrder(order);
    }
}
